@extends('common/main')
@section('cnt')
<div class="row">
    <form action="{{ route('add') }}" enctype="multipart/form-data" method="post" class="form-horizontal" role="form">
        @csrf
        <div class="form-group">
            <label class="col-sm-2 control-label">账号：</label>
            <div class="col-sm-6">
                <input type="text" name="username" class="form-control">
            </div>
            @if($errors->has('username'))
                <div class="col-sm-4 has-error">{{ $errors->first('username') }}</div>
            @endif
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">密码：</label>
            <div class="col-sm-6">
                <input type="text" name="password" class="form-control">
            </div>
            @if($errors->has('password'))
                <div class="col-sm-4 has-error">{{ $errors->first('password') }}</div>
            @endif
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">上传头像</label>
            <div class="col-sm-6">
                <input type="file" name="file" id="">
            </div>
        </div>
        {{-- <div class="form-group">
            <label class="col-sm-2 control-label" for="">验证码：</label>
            <div class="col-sm-4">
                {{ captcha_img() }}
            </div>
            <div class="col-sm-6">
                <input type="text" name="" class="form-control">
            </div>
        </div> --}}
        <div class="form-group">
            <div class="col-sm-10 col-sm-offset-2">
                <button type="submit" class="btn btn-primary">添加用户</button>
            </div>
        </div>
    </form>
</div>
@endsection